package com.hdax.dm.common.api;

import com.hdax.dm.scheduler.DmScheduler;
import com.hdax.dm.scheduler.DmSchedulerSeat;
import com.hdax.dm.scheduler.DmSchedulerSeatPrice;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public interface SchedulerControllerApi {
    @PostMapping(path = "scheduler")
    List<DmScheduler> dmScheduler(@RequestParam("itemId") String itemId);
    @PostMapping(path = "schedulerPrice")
    List<DmSchedulerSeatPrice> dmSchedulerPrice(@RequestParam("itemId") String scheduleId);
    @PostMapping(path = "schedulerPriceIdAreaId")
    List<DmSchedulerSeatPrice> schedulerPriceIdAreaId(@RequestParam("scheduleId") Long scheduleId,@RequestParam("areaLevel") Long areaLevel);

    @PostMapping(path = "schedulerSeat")
    List<DmSchedulerSeat> dmSchedulerSeat(@RequestParam("x")Long x,
                                            @RequestParam("y")Long y,
                                          @RequestParam("scheduleId")Long scheduleId
                                        );

    @PostMapping(path = "updataScheSeat")
    Boolean updataSeat(@RequestBody DmSchedulerSeat seat);

    @PostMapping(path = "updataSeatxy")
    Boolean updataXY(@RequestParam("orderNo") String orderNo);

}
